import request from '@/utils/request'

// 查询留样室巡检记录---养护模块实现列表
export function listRetention(query) {
  return request({
    url: '/Laboratory/retentionController/list',
    method: 'get',
    params: query
  })
}

// 查询留样室巡检记录---养护模块实现详细
export function getRetention(id) {
  return request({
    url: '/Laboratory/retentionController/' + id,
    method: 'get'
  })
}

// 新增留样室巡检记录---养护模块实现
export function addRetention(data) {
  return request({
    url: '/Laboratory/retentionController',
    method: 'post',
    data: data
  })
}

// 修改留样室巡检记录---养护模块实现
export function updateRetention(data) {
  return request({
    url: '/Laboratory/retentionController',
    method: 'put',
    data: data
  })
}

// 删除留样室巡检记录---养护模块实现
export function delRetention(id) {
  return request({
    url: '/Laboratory/retentionController/' + id,
    method: 'delete'
  })
}
